<!DOCTYPE html>
<html class="x-admin-sm">

<head>
    <meta charset="UTF-8">
    <title>确认取药 / Pharmacy</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport"
          content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi"/>
    <link rel="stylesheet" href="../../css/font.css">
    <link rel="stylesheet" href="../../css/xadmin.css">
    <script src="../../lib/layui/layui.js" charset="utf-8"></script>
    <script type="text/javascript" src="../../js/xadmin.js"></script>
    <!--[if lt IE 9]>
      <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
      <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
</head>

<body>

<div class="x-nav">
          <span class="layui-breadcrumb">
            <a href="">首页</a>
           
            <a>
              <cite>患者取药 / Pharmacy</cite></a>
          </span>
    <a class="layui-btn layui-btn-small" style="line-height:1.6em;margin-top:3px;float:right"
       onclick="location.reload()" title="刷新">
        <i class="layui-icon layui-icon-refresh" style="line-height:30px"></i></a>
</div>


<div class="layui-fluid">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-md12">
            <div class="layui-card">
                <div class="layui-card-body ">
                    <button class="layui-btn" lay-submit="" lay-filter="sreach"><i class="layui-icon">批量取药</i></button>

                    <form class="layui-form layui-col-space5">
                        <div class="layui-inline layui-show-xs-block">
                            <select name="shape" lay-verify="">
                                <option value="">方型</option>
                                <option value="010">中药</option>
                                <option value="021">西药</option>
                                <option value="0571">中成药</option>
                            </select>
                        </div>
                        <div class="layui-inline layui-show-xs-block">
                            <select name="type" lay-verify="">
                                <option value="">药品类型</option>
                                <option value="010">袋装颗粒</option>
                                <option value="021">饮片</option>
                                <option value="0571">颗粒</option>
                            </select>
                        </div>

                        <div class="layui-inline layui-show-xs-block">
                            <input class="layui-input" autocomplete="off" placeholder="开始日" name="start" id="start">
                        </div>
                        <div class="layui-inline layui-show-xs-block">
                            <input class="layui-input" autocomplete="off" placeholder="截止日" name="end" id="end"></div>
                        <div class="layui-inline layui-show-xs-block">
                            <input type="text" name="username" placeholder="请输入患者姓名/手机号" autocomplete="off"
                                   class="layui-input"></div>
                        <div class="layui-inline layui-show-xs-block">
                            <input type="text" name="username" placeholder="请输入处方编号" autocomplete="off"
                                   class="layui-input"></div>
                        <div class="layui-inline layui-show-xs-block">
                            <button class="layui-btn" lay-submit="" lay-filter="sreach">
                                <i class="layui-icon">&#xe615;</i></button>
                        </div>
                    </form>
                </div>


                <div class="layui-card-body layui-table-body layui-table-main">
                    <table class="layui-table layui-form">
                        <thead>
                        <tr>
                            <th>

                            </th>
                            <th>姓名</th>
                            <th>性别</th>
                            <th>联系方式</th>
                            <th>就诊日期</th>
                            <th>挂号单号</th>
                            <th>开方医生</th>
                            <th>操作</th>
                        </tr>
                        </thead>
                        <tbody>
                        <tr>
                            <td>
                                <input type="checkbox" name="id" value="1" lay-skin="primary">
                            </td>
                            <td>10086</td>
                            <td>小明</td>
                            <td>男</td>
                            <td>16</td>
                            <td>15777540424</td>
                            <td>急诊科</td>


                            <td>
                                <a title="退款" onclick="member_del(this,'要删除的id')" href="javascript:;">
                                    <button type="button" class="layui-btn ">取药</button>
                                </a>
                            </td>
                        </tr>

                        </tbody>
                    </table>
                </div>

                <div style="padding: 10px; background-color: #F2F2F2;">
                    <div class="layui-row layui-col-space15">
                        <div class="layui-col-md6">
                            <div class="layui-card">
                                <div class="layui-card-header">处方</div>
                                <div class="layui-card-body">
                                    药品名称：${}<br>
                                    用量：${}<br>
                                    小计：${}<br>
                                    状态：${}<br>

                                </div>
                            </div>
                        </div>


                        <div id="demo0"></div>
                        </script>

                        </script>
                        <script>layui.use('laydate',
                            function () {
                                var laydate = layui.laydate;

                                //执行一个laydate实例
                                laydate.render({
                                    elem: '#start' //指定元素
                                });

                                //执行一个laydate实例
                                laydate.render({
                                    elem: '#end' //指定元素
                                });

                            });</script>
                        <script>layui.use('table',
                            function () {
                                var table = layui.table;

                                //监听单元格编辑
                                table.on('edit(test)',
                                    function (obj) {
                                        var value = obj.value //得到修改后的值
                                            ,
                                            data = obj.data //得到所在行所有键值
                                            ,
                                            field = obj.field; //得到字段
                                        layer.msg('[ID: ' + data.id + '] ' + field + ' 字段更改为：' + value);
                                    });

                                //头工具栏事件
                                table.on('toolbar(test)',
                                    function (obj) {
                                        var checkStatus = table.checkStatus(obj.config.id);
                                        switch (obj.event) {
                                            case 'getCheckData':
                                                var data = checkStatus.data;
                                                layer.alert(JSON.stringify(data));
                                                break;
                                            case 'getCheckLength':
                                                var data = checkStatus.data;
                                                layer.msg('选中了：' + data.length + ' 个');
                                                break;
                                            case 'isAll':
                                                layer.msg(checkStatus.isAll ? '全选' : '未全选');
                                                break;
                                        }
                                        ;
                                    });
                            });</script>
                        <script>var _hmt = _hmt || [];
                        (function () {
                            var hm = document.createElement("script");
                            hm.src = "https://hm.baidu.com/hm.js?b393d153aeb26b46e9431fabaf0f6190";
                            var s = document.getElementsByTagName("script")[0];
                            s.parentNode.insertBefore(hm, s);
                        })();</script>

</html>
<script>
    layui.use(['laypage', 'layer'], function () {
        var laypage = layui.laypage
            , layer = layui.layer;

        //总页数低于页码总数
        laypage.render({
            elem: 'demo0'
            , count: 100 //数据总数
        });
        //调用分页
        laypage.render({
            elem: 'demo20'
            , count: data.length
            , jump: function (obj) {
                //模拟渲染
                document.getElementById('biuuu_city_list').innerHTML = function () {
                    var arr = []
                        , thisData = data.concat().splice(obj.curr * obj.limit - obj.limit, obj.limit);
                    layui.each(thisData, function (index, item) {
                        arr.push('<li>' + item + '</li>');
                    });
                    return arr.join('');
                }();
            }
        });

    });
</script>